---
title: "List Knowledge Bases"
api: "GET labs.chonkie.ai/api/v1/knowledge"
description: "Get all knowledge bases in your organization"
---

Retrieve a list of all knowledge bases in your organization.

## Request

This endpoint takes no parameters.

## Response

#### Returns

Array of knowledge base objects:

<ResponseField name="id" type="string">
  Unique identifier for the knowledge base.
</ResponseField>

<ResponseField name="slug" type="string">
  URL-safe slug for API calls.
</ResponseField>

<ResponseField name="name" type="string">
  Knowledge base name.
</ResponseField>

<ResponseField name="description" type="string">
  Knowledge base description.
</ResponseField>

## Examples

<CodeGroup>

```python Python
import requests

url = "https://labs.chonkie.ai/api/v1/knowledge"
headers = {
    "Authorization": "Bearer YOUR_API_KEY"
}

response = requests.get(url, headers=headers)
knowledge_bases = response.json()

print(f"Found {len(knowledge_bases)} knowledge bases")
for kb in knowledge_bases:
    print(f"- {kb['name']} ({kb['slug']})")
```

```javascript JavaScript
const response = await fetch('https://labs.chonkie.ai/api/v1/knowledge', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY'
  }
});

const knowledgeBases = await response.json();
console.log(`Found ${knowledgeBases.length} knowledge bases`);
knowledgeBases.forEach(kb => {
  console.log(`- ${kb.name} (${kb.slug})`);
});
```

```bash cURL
curl -X GET https://labs.chonkie.ai/api/v1/knowledge \
  -H "Authorization: Bearer YOUR_API_KEY"
```

</CodeGroup>
